package com.jigsaw.repository;

import com.jigsaw.model.MoviesInfoEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Jigsaw on 2016/4/4.
 */
@Repository
public interface MoviesRepository extends JpaRepository<MoviesInfoEntity, Integer> {
//    @Query("select mv from MoviesInfoEntity mv where mv.cate_id =:qcateid order by mv.rating DESC limit 0, 1")
//    public List<MoviesInfoEntity> findByCate(@Param("qcateid") Integer qcateid);
}
